package com.longteng.java.web.dataproducer;

import java.util.Random;

/**
 * Created by tianqing.wang
 * DATE : 2018/3/18
 * TIME : 上午1:02
 * PROJECT : java-lesssion
 * PACKAGE : com.gitee.longteng.lession.lesson2.dataproducer
 *
 * @author <a href="mailto:celeskyking@163.com">tianqing.wang</a>
 */
public class RandomUtil {


    private static Random random = new Random();

    public static int getRandom(int start,int end){
        return random.nextInt (end-start+1)+ start;
    }




}
